<template>
  <el-config-provider :locale="locale">
    <Header v-if="route.path !== '/login'" />
    <router-view />
  </el-config-provider>
</template>
<script setup>
import { useTheme } from '@/hooks/useTheme'
import zhCn from 'element-plus/lib/locale/lang/zh-cn'
import Header from './views/analysis/components/Header.vue'
const { initTheme } = useTheme()
const route = useRoute()
/** 初始化主题 */
initTheme()
/** 将 Element Plus 的语言设置为中文 */
const locale = zhCn
</script>
<style>
.content {
  width: 100%;
  height: 100vh;
  background-color: #ebeef5;
  overflow: auto;
  padding: 20px;
  padding-top: 80px;
}
</style>
